import { createApp } from 'vue'
import App from './App.vue'
import router from "./router"; //导入router
import axios from "axios";
axios.defaults.baseURL='http://192.168.90.26:8080'  //服务器基准URL地址

/* 引入Element-Plus插件 */
import ElementPlus from 'element-plus'
/* 引入Element-Plus样式 */
import 'element-plus/dist/index.css'
/*解决Element-plus默认分页文字为英文*/
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app=createApp(App) //创建vue实例对象
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router) //使用router
/* 使用Element-Plus插件 */
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app')
